﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityPet
{
    /// <summary>
    /// 登录界面
    /// </summary>
    public class Pet_logon
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        [MaxLength(16)]
        [MinLength(8)]
        [Required]
        public string? Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [MaxLength(16)]
        [MinLength(8)]
        [Required]
        public string? Password { get; set; }

        /// <summary>
        /// 注册
        /// </summary>
        [MaxLength(16)]
        [MinLength(8)]
        public string? register { get; set; }


        /// <summary>
        /// 修改密码
        /// </summary>
        [MaxLength(16)]
        [MinLength(8)]
        public string? ChangePassword { get; set; }

        /// <summary>
        /// 忘记密码
        /// </summary>
        [MaxLength(16)]
        [MinLength(8)]
        public string? ForgotPassword { get; set; }
    }
}
